package com.hyacinth.lotterysystem.dto.req;

import com.hyacinth.lotterysystem.dto.param.Winner;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
public class DrawPrizeReq {

    @NotNull(message = "活动id不能为空")
    private Long activityId;

    @NotNull(message = "奖品id不能为空")
    private Long prizeId;

    @NotNull(message = "中奖时间不能为空")
    private Date winningTime;

    @Valid
    @NotEmpty(message = "中奖者列表不能为空")
    private List<Winner> winnerList;
}
